﻿using DocumentFormat.OpenXml.Office2021.DocumentTasks;
using JinfuyuanProject.Service.Interface;
using JinfuyuanProject.Service.Service;
using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Web;

namespace JinfuyuanProject.Jobs
{
    public class PaySalaryJob : IJob
    {
        private readonly IPaySalaryService _paySalaryService;

        public PaySalaryJob(IPaySalaryService paySalaryService)
        {
            // 这里可以注入依赖项，例如数据库上下文或服务
            _paySalaryService = paySalaryService;
        }

        public System.Threading.Tasks.Task Execute(IJobExecutionContext context)
        {
            return _paySalaryService.Execute();
        }
    }
}